
<%@ page import="website.Reservation" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'reservation.label', default: 'Reservation')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-reservation" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-reservation" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list reservation">
			
				<g:if test="${reservationInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="reservation.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${reservationInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.surname}">
				<li class="fieldcontain">
					<span id="surname-label" class="property-label"><g:message code="reservation.surname.label" default="Surname" /></span>
					
						<span class="property-value" aria-labelledby="surname-label"><g:fieldValue bean="${reservationInstance}" field="surname"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.mail}">
				<li class="fieldcontain">
					<span id="mail-label" class="property-label"><g:message code="reservation.mail.label" default="Mail" /></span>
					
						<span class="property-value" aria-labelledby="mail-label"><g:fieldValue bean="${reservationInstance}" field="mail"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.currency}">
				<li class="fieldcontain">
					<span id="currency-label" class="property-label"><g:message code="reservation.currency.label" default="Currency" /></span>
					
						<span class="property-value" aria-labelledby="currency-label"><g:fieldValue bean="${reservationInstance}" field="currency"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.phone}">
				<li class="fieldcontain">
					<span id="phone-label" class="property-label"><g:message code="reservation.phone.label" default="Phone" /></span>
					
						<span class="property-value" aria-labelledby="phone-label"><g:fieldValue bean="${reservationInstance}" field="phone"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.apartment}">
				<li class="fieldcontain">
					<span id="apartment-label" class="property-label"><g:message code="reservation.apartment.label" default="Apartment" /></span>
					
						<span class="property-value" aria-labelledby="apartment-label"><g:link controller="apartment" action="show" id="${reservationInstance?.apartment?.id}">${reservationInstance?.apartment?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.arr_date}">
				<li class="fieldcontain">
					<span id="arr_date-label" class="property-label"><g:message code="reservation.arr_date.label" default="Arrdate" /></span>
					
						<span class="property-value" aria-labelledby="arr_date-label"><g:formatDate date="${reservationInstance?.arr_date}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.country}">
				<li class="fieldcontain">
					<span id="country-label" class="property-label"><g:message code="reservation.country.label" default="Country" /></span>
					
						<span class="property-value" aria-labelledby="country-label"><g:fieldValue bean="${reservationInstance}" field="country"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.created}">
				<li class="fieldcontain">
					<span id="created-label" class="property-label"><g:message code="reservation.created.label" default="Created" /></span>
					
						<span class="property-value" aria-labelledby="created-label"><g:formatDate date="${reservationInstance?.created}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.ctb}">
				<li class="fieldcontain">
					<span id="ctb-label" class="property-label"><g:message code="reservation.ctb.label" default="Ctb" /></span>
					
						<span class="property-value" aria-labelledby="ctb-label"><g:formatBoolean boolean="${reservationInstance?.ctb}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.dep_date}">
				<li class="fieldcontain">
					<span id="dep_date-label" class="property-label"><g:message code="reservation.dep_date.label" default="Depdate" /></span>
					
						<span class="property-value" aria-labelledby="dep_date-label"><g:formatDate date="${reservationInstance?.dep_date}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.info}">
				<li class="fieldcontain">
					<span id="info-label" class="property-label"><g:message code="reservation.info.label" default="Info" /></span>
					
						<span class="property-value" aria-labelledby="info-label"><g:fieldValue bean="${reservationInstance}" field="info"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.late_arr}">
				<li class="fieldcontain">
					<span id="late_arr-label" class="property-label"><g:message code="reservation.late_arr.label" default="Latearr" /></span>
					
						<span class="property-value" aria-labelledby="late_arr-label"><g:formatBoolean boolean="${reservationInstance?.late_arr}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.num_nights}">
				<li class="fieldcontain">
					<span id="num_nights-label" class="property-label"><g:message code="reservation.num_nights.label" default="Numnights" /></span>
					
						<span class="property-value" aria-labelledby="num_nights-label"><g:fieldValue bean="${reservationInstance}" field="num_nights"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.num_persons}">
				<li class="fieldcontain">
					<span id="num_persons-label" class="property-label"><g:message code="reservation.num_persons.label" default="Numpersons" /></span>
					
						<span class="property-value" aria-labelledby="num_persons-label"><g:fieldValue bean="${reservationInstance}" field="num_persons"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.supple}">
				<li class="fieldcontain">
					<span id="supple-label" class="property-label"><g:message code="reservation.supple.label" default="Supple" /></span>
					
						<span class="property-value" aria-labelledby="supple-label"><g:formatBoolean boolean="${reservationInstance?.supple}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.total_price}">
				<li class="fieldcontain">
					<span id="total_price-label" class="property-label"><g:message code="reservation.total_price.label" default="Totalprice" /></span>
					
						<span class="property-value" aria-labelledby="total_price-label"><g:fieldValue bean="${reservationInstance}" field="total_price"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.trans_in}">
				<li class="fieldcontain">
					<span id="trans_in-label" class="property-label"><g:message code="reservation.trans_in.label" default="Transin" /></span>
					
						<span class="property-value" aria-labelledby="trans_in-label"><g:formatBoolean boolean="${reservationInstance?.trans_in}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${reservationInstance?.trans_out}">
				<li class="fieldcontain">
					<span id="trans_out-label" class="property-label"><g:message code="reservation.trans_out.label" default="Transout" /></span>
					
						<span class="property-value" aria-labelledby="trans_out-label"><g:formatBoolean boolean="${reservationInstance?.trans_out}" /></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${reservationInstance?.id}" />
					<g:link class="edit" action="edit" id="${reservationInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
